{% load i18n %}

<div id="pvt_box"></div>

<table class="message_box">
    <thead>
        <tr>
            <th class="col1 span-10">{% trans "Message Title" %}</th>
            <th class="col2 span-4" style="text-align: center;">{% trans "Username" %}</th>
            <th class="col3 span-4" style="text-align: center;">{% trans "Date" %}</th>
            <th class="col4 span-2" style="text-align: center;"></th>
        </tr>
    </thead>
    <tbody>
        {% if paginator.count %}
        {% for forum_message in page.object_list %}
        <tr>
            <td><a href="javascript: load_pvt( '{% url pvt_load_message forum_message.id %}' , 'pvt_box');">{{forum_message}}</a></td>
            <td style="text-align: center;"><a href="{% url forum_user forum_message.from_user,"stats" %}">{{forum_message.from_user}}</a></td>
            <td style="text-align: center;">{{forum_message.created|date}}</td>
            <td style="text-align: center;"><a title="erase this message" href="{% url forum_message_act forum_message.id,"del" %}">X</a></td>
        </tr>
        {% endfor %}
        {% else %}
        <caption>
            {% trans "You've no private messages at the moment" %}.
        </caption>
        {% endif %}
    </tbody>
    <tfoot></tfoot>
</table>